<template>
  <div class="LeagueTable">
    <p class="LeagueTable_title">
      排行榜
      <router-link to="#"><span style="margin-left: 10px">Top 100>></span></router-link>
    </p>
    <ul class="LeagueTable_ul">
      <li class="LeagueTable_ul_li" v-for="(v, i) of list" :key="i">
        <span>{{ v.fraction }}</span>
        <router-link to="#">
          <span class="LeagueTable_ul_li_name">{{ v.name }}</span>
        </router-link>
      </li>
    </ul>
  </div>
</template>

<script>
export default {
  data() {
    return {
      list: [
        { fraction: 22760, name: "i5ting" },
        { fraction: 10045, name: "atian25" },
        { fraction: 9350, name: "leapong" },
        { fraction: 8780, name: "jiyinyiyong" },
        { fraction: 7815, name: "yakczh" },
        { fraction: 6855, name: "im-here" },
        { fraction: 6135, name: "DevinXian" },
        { fraction: 5815, name: "chapgaga" },
        { fraction: 5375, name: "magicdawn" },
      ],
    };
  },
};
</script>

<style>
.LeagueTable {
  margin-bottom: 13px;
  background: #fff;
  padding-bottom: 15px;
  border-radius: 3px;
}
.LeagueTable_title {
  height: 40px;
  line-height: 40px;
  padding-left: 10px;
  background: #f5f5f5;
  margin-bottom: 14px;
  font-size: 14px;
  color: #444;
}
.LeagueTable_ul {
  list-style: none;
}
.LeagueTable_ul_li {
  padding-left: 10px;
  padding-right: 10px;
  margin-top: 13px;
}
.LeagueTable_ul_li span {
  color: #778087;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: middle;
  overflow: hidden;
  font-size: 14px;
}
.LeagueTable_ul_li_name{
    margin-left: 15px;
}
.LeagueTable_ul_li_name:hover{
    text-decoration: underline;
}
</style>